From: Ian Campbell Date: Tue, 2 Jan 2007 14:19:47 +0000 (+0000) Subject: [PV-on-HVM] blkfront: use %Lu instead of %llu to xenbus_gather. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15422^2~106 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=3c4b2d4c00fd0dcb2d8044c6efa0ce46c234639a;p=xen.git [PV-on-HVM] blkfront: use %Lu instead of %llu to xenbus_gather. The 'll' length modifier is not available with scanf (and therefore xenbus_gather) on older kernel versions so use 'L' which is available at least back to 2.6.5. Signed-off-by: Ian Campbell --- diff --git a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c index ff14259809..5b07416fa2 100644 --- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c +++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c @@ -306,7 +306,7 @@ static void connect(struct blkfront_info *info) DPRINTK("blkfront.c:connect:%s.\n", info->xbdev->otherend); err = xenbus_gather(XBT_NIL, info->xbdev->otherend, - "sectors", "%llu", §ors, + "sectors", "%Lu", §ors, "info", "%u", &binfo, "sector-size", "%lu", §or_size, NULL);